package com.qf.mapper;

import com.qf.pojo.QueryParams;
import com.qf.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    List<Role> findRoleAll(QueryParams params);

    int addRole(Role role);

    Role findRoleOne(@Param("roleId") Integer roleId);

    Integer updateRole(Role role);

    Integer deleteRole(@Param("roleId") Integer roleId);
}
